<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动</title>
		<style>
			.wai {
				width: 600px;
				height: 600px;
				background-color: aqua;
			}
			.nei {
				width: 100px;
				height: 100px;
				float: left;
				margin-right: 40px;
			}
		</style>
	</head>
	<body>
		<div class="wai">
			<div class="nei" style="background-color: blue;">
				
			</div>
			<div class="nei" style="background-color: red;">
				
			</div>
			<div class="nei" style="background-color: green;">
				
			</div>
		</div>
	</body>
</html>